import AppError from './AppError.js';
import { HTTP_STATUS } from '#src/constants/http.constants.js';

class ValidationError extends AppError {
  constructor(message, errors = []) {
    super(message || 'Validation failed', HTTP_STATUS.BAD_REQUEST);
    this.name = 'ValidationError';
    this.errors = errors;
  }
}

export default ValidationError;